﻿<Windows:AbstractRibbonSplitButton x:Class="PefStudio.Windows.PasteRibbonSplitButton"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:Windows="clr-namespace:PefStudio.Windows;assembly=PefStudio.Ribbon" 
             xmlns:Fluent="clr-namespace:Fluent;assembly=Fluent" xmlns:Windows1="clr-namespace:PefStudio.Windows" mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" Fluent:KeyTip.Keys="V">
    <Fluent:Gallery ScrollViewer.VerticalScrollBarVisibility="Hidden" Orientation="Horizontal" GroupBy="Tag" Selectable="False" ItemWidth="32" ItemHeight="32">
        <Fluent:Gallery.ItemContainerStyle>
            <Style TargetType="{x:Type Fluent:GalleryItem}"  BasedOn="{StaticResource {x:Type Fluent:GalleryItem}}">
                <Setter Property="Fluent:GalleryItem.Command" Value="Paste"/>
            </Style>
        </Fluent:Gallery.ItemContainerStyle>
        <Image Source="Images\PasteImage.png" Width="24" Height="24" Fluent:KeyTip.Keys="K" Tag="Paste Options:"/>
        <Image Source="Images\PasteText.png" Width="24" Height="24" Fluent:KeyTip.Keys="M" Tag="Paste Options:"/>
        <Image Source="Images\PasteTextOnly.png" Width="24" Height="24" Fluent:KeyTip.Keys="T" Tag="Paste Options:"/>
        <Image Source="Images\PasteFormating.png" Width="24" Height="24" Fluent:KeyTip.Keys="L" Tag="Paste Options:"/>
        <Image Source="Images\PasteSourceFormating.png" Width="24" Height="24" Fluent:KeyTip.Keys="E" Tag="Paste Options:"/>
    </Fluent:Gallery>
    <Fluent:MenuItem Header="Paste Special..." Fluent:KeyTip.Keys="S" Command="{x:Static Windows1:PasteRibbonSplitButton.CustomRoutedCommand}">
        <Fluent:MenuItem.ToolTip>
            <Fluent:ScreenTip Title="Paste Special"                                  
                                  Text="This ScreenTip is attached to menu item"/>
        </Fluent:MenuItem.ToolTip>
    </Fluent:MenuItem>
    <Separator/>
    <Fluent:MenuItem Header="Set Default Paste..." Fluent:KeyTip.Keys="A" IsSplited="True" Command="Paste">
        <Fluent:MenuItem Header="1" Click="OnMenuItemClick"></Fluent:MenuItem>
        <Fluent:MenuItem Header="2" Command="Paste"></Fluent:MenuItem>
    </Fluent:MenuItem>
    <Fluent:MenuItem Header="Paste now" Command="Paste"></Fluent:MenuItem>
</Windows:AbstractRibbonSplitButton>